home *** CD-ROM | disk | FTP | other *** search
/ World of Education / World of Education.iso / world_m / mercuryz.zip / CARDIOID.EKA < prev    next >
Text File  |  1992-03-24  |  257b  |  11 lines

  1. ; Graph of cardioid, a heart-shaped curve.
  2. ; Example of parametric plot
  3.  
  4. r(t) := 2 (COS(t) + 1)        ; equation in polar coords
  5. x(t) := r(t) COS(t)           ; polar to rectangular conversion
  6. y(t) := r(t) SIN(t)
  7.  
  8. PLOT y
  9. XAXIS x
  10. GBOUNDS 0, 2 PI
  11.